import request from '@/utils/request'
export function totalForStudentReg() {
  return request({
    url: '/system/reg/totalForStudent',
    method: 'get',
  })
}
// 查询活动报名列表
export function listReg(query) {
  return request({
    url: '/system/reg/list',
    method: 'get',
    params: query
  })
}
export function listForStudentReg(query) {
  return request({
    url: '/system/reg/listForStudent',
    method: 'get',
    params: query
  })
}

// 查询活动报名详细
export function getReg(id) {
  return request({
    url: '/system/reg/' + id,
    method: 'get'
  })
}

// 新增活动报名
export function addReg(data) {
  return request({
    url: '/system/reg',
    method: 'post',
    data: data
  })
}

// 修改活动报名
export function updateReg(data) {
  return request({
    url: '/system/reg',
    method: 'put',
    data: data
  })
}

// 删除活动报名
export function delReg(id) {
  return request({
    url: '/system/reg/' + id,
    method: 'delete'
  })
}
export function submitReg(data) {
  return request({
    url: '/system/reg/submit',
    method: 'post',
    data: data
  })
}
export function auditReg(data) {
  return request({
    url: '/system/reg/audit',
    method: 'post',
    data: data
  })
}
